package com.xyht.medicine_management_system.common.config;

import com.xyht.medicine_management_system.common.util.CacheUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class InitConfig {
    @Autowired
    private CacheUtil cacheUtil;
    @Bean
    public void init(){
        cacheUtil.saveAllAuth();
    }
}
